﻿@page "/Modules/MeasureModule"

@using SubStationManagement.Server.Models
@using SubStationManagement.Server.Services
@inject MeasureModuleService measureModuleService

@attribute [TabItemOption(Text = "测控模块")]

<Table TItem="MeasureModule"
       IsPagination="true" IsStriped="true" IsBordered="true" ClickToSelect="true" PageItemsSource="new int[] {10, 20}"
       ShowToolbar="true" ShowSearch="true" IsMultipleSelect="true" ShowExtendButtons="true" ShowSkeleton="true"
       ShowEmpty="true"
       OnQueryAsync="@OnQueryAsync"
       OnSaveAsync="OnSaveAsync" OnDeleteAsync="OnDeleteAsync">
    <TableColumns>
        <TableColumn @bind-Field="context.SerialNumber"></TableColumn>
        <TableColumn @bind-Field="context.IpAddress"></TableColumn>
        <TableColumn @bind-Field="context.Port"></TableColumn>
        <TableColumn @bind-Field="context.ModbusAddress"></TableColumn>
        <TableColumn @bind-Field="context.PowerSamplingRate"></TableColumn>
        <TableColumn @bind-Field="context.HarmonicSamplingRate"></TableColumn>
        <TableColumn @bind-Field="context.Enable" IsVisibleWhenEdit="false" IsVisibleWhenAdd="false"></TableColumn>
    </TableColumns>
</Table>
